﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WebNext.UI.Properties;
using WebNext.Domain.Entities;
using WebNext.UI.Utils;

namespace WebNext.UI.Models
{
	public abstract class MainViewModel
	{
		public MainViewType ViewType
		{
			get;
			protected set;
		}

		public string PageTitle
		{
			get;
			protected set;
		}

		public string PageName
		{
			get;
			protected set;
		}

		public string PageDescription
		{
			get;
			protected set;
		}

		public bool IsLogged
		{
			get;
			private set;
		}

		public FilterConfig FilterConfig
		{
			get;
			set;
		}

		public CultureId CultureId
		{
			get { return (CultureId)System.Threading.Thread.CurrentThread.CurrentUICulture.LCID; }
		}

		public MainViewModel(bool isLogged) 
		{
			this.IsLogged = isLogged;
			this.FilterConfig = new FilterConfig();
		}
	}
}